/**
 * 邀请面试
 */
import React from 'react';
import { withRouter, router } from 'umi';
import AuthComponent from '@/utils/auth/AuthComponent';
import { Icon } from '../../components';

function InterviewInviteOperate({ candidateId, resumeId, ...rest }) {
    const handleJumpInvite = () => {
        history.push({
            pathname: '/office/personnelManagement/recruitment/candidate/invite',
            query: { candidateId, resumeId }
        });
    };
    return (
        <AuthComponent code="office:recruitment:course:interview:add">
            <Icon
                title="联系面试"
                type="listfunction_interview_contact_icon_default"
                onClick={handleJumpInvite}
                {...rest}
            />
        </AuthComponent>
    );
}
export default withRouter(InterviewInviteOperate);
